package com.zzsy.carosshopprojects.base;

import android.os.Build;

import androidx.annotation.RequiresApi;


/**
 * 配置文件
 */
@RequiresApi(api = Build.VERSION_CODES.FROYO)
public class ConfigureFile {
    public static final String ISLOGIN = "not_first_entry_app";//是否第一次登陆
    public static final String ACCOUNT = "account";//本地保存的账号
    public static final String PWD = "psd";//本地保存的密码
    public static final String ISREMENBER = "isRemenber";//是否记住账号密码
    public static final String OLDVERSION = "oldVersion";//存储上一次的版本号 又来与最新的版本号进行对比 版本更新后用户无感知登录能用到
    public static final String JWT = "jwt";
    public static final String COMPANYID = "companyId"; //  企业id
    public static final String STOREID = "storeId";//  门店的id
    public static final String STORENAME = "storeName"; //  门店名称
    public static final String NAME = "name"; //  账户名
    public static final String CUSTOMERTYPE = "customerType";  // 账号类型 0 后台用户 1 加油员 2 吧台
    public static final String TERMINALNUM = "terminalNum";   //终端号
    public static final String OPENSTATE = "openState"; //终端开通状态 0未开通 1 已开通
    public static final String ACTIVATIONSTATE = "activationState";  //终端激活状态 0 未激活 1 已激活
    public static final String TOKEN = "token";   //终端token
    public static final String TERMINALID = "terminalId";   //终端id
    public static final String MERCHANTNUM = "merchantNum";  //商户号
    public static final String TERMINALNAME = "terminalName";  //设备名称
    public static final String QRSWITCH = "qrSwitch";   //开具发票开关
    public static final String USERID = "userId";  //获取用户id
    public static final String COMPANYNAME = "companyName";//获取企业名称
    public static final String MUSICSWITCH = "musicSwitch";//语音播报开关
    public static final String CHANGESHIFESTICKET = "changeShiftsTicket";//交接班小票开关
    public static final String OTHERTICKET = "otherTicket";//消费及充值打印小票开关
    public static final String GZHSWITCH = "gzhSwitch";//是否打印公众号小票开关
    public static final String ISUSERMEMBER = "isUseMember";//是否可以使用会员卡功能 0：否、1：是
    public static final String PRINTPOSTION = "printPosition";//小票模板 0 模板1 小票上方    1模板2 小票下方
    public static final int code = 200;//访问接口成功的状态
    public static final String FILENAME = "wx_sp_date";//保存的项目的文件名称

    public static final String ColorWhite = "#FFFFFF";//白色
    public static final String ColorSystem = "#FF8A4C";//系统色

    public static final String ALIAS = "merchant_v3_";//发版时的别名控制 测试 TEST3  正式 merchant_v3_

    public static final String ZFBPAY="020";//支付宝支付
    public static final String WXPAY="010";//微信支付
    public static final String CARDPAY="3";//银行卡支付
    public static final String YUEPAY="5";//余额支付

    /**
     * 保存登录时的用户数据
     *
     * @param loginBean
     */
//    public static void setConfigure(LoginBean loginBean) {
//        SPUtil.getInstance().putString(ConfigureFile.USERID, loginBean.getUser_id());
//        SPUtil.getInstance().putString(ConfigureFile.USERNAME, loginBean.getUser_name());
//        SPUtil.getInstance().putString(ConfigureFile.SEX, loginBean.getSex());
//        SPUtil.getInstance().putString(ConfigureFile.PHONE, loginBean.getMobile_phone());
//        SPUtil.getInstance().putString(ConfigureFile.HEADERURL, loginBean.getUser_picture());
//        SPUtil.getInstance().putBoolean(ConfigureFile.ISLOGIN, true);
//    }
}
